#ifndef _ACCOUNT_H_
#define _ACCOUNT_H_
#include<iostream>

class Account
{
public:
	void calculate()
	{
		amount += amount * interestRate;
	}
	static double rate()
	{
		return interestRate;
	}
	static void rate(double);

private:
	std::string owner;
	double amount;
	static double interestRate;
	static double initRate;
	static constexpr int period = 30;
	double daily_tbl[period];
};

constexpr int Account::period;
double Account::interestRate = 0.0;
double Account::initRate = 0.0;

void Account::rate(double newRate)
{
	interestRate = newRate;
}



#endif